<template>
  <el-config-provider :locale="appStore.language === 'zh' ? zhCn : en">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import en from 'element-plus/es/locale/lang/en'
import { useAppStore } from '@/stores/modules/app'
const appStore = useAppStore()
</script>

<style lang="scss" scoped></style>
